ActionController::Routing::Routes.draw do |map|
  map.save_input_prefs "save_input_prefs", :controller => 'user_modules', :action => 'save_input_prefs'
  map.user_output_modules_save "user_output_modules_save", :controller => "user_output_modules", :action => "save"

  map.resources :user_modules
  map.resources :outputs
  map.resources :inputs


  map.root :controller => 'dashboard', :action => 'index'
  
  map.resources :user_sessions
  map.resources :users

  map.login "login", :controller => 'user_sessions', :action => 'new'
  map.logout "logout", :controller => 'user_sessions', :action => 'destroy'
  map.dashboard "dashboard", :controller => 'dashboard', :action => 'index'
  map.admin "admin", :controller => 'users', :action => 'index'
  map.messages_log "messages-log", :controller => 'messages' , :action => 'index'
  map.developers "developers", :controller => 'developers', :action => 'index'
  

  

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
